startDragging() {
        if(!layoutModeGet()){
            this.oldx = this.x;
            this.oldy = this.y;
        }
        else{
            this.oldx = this.subcircuitMetadata.x;
            this.oldy = this.subcircuitMetadata.y;
        }
    }
Helper Function to drag element to a new position