click() {
        var elementClicked = this.getElementHover();
        if(elementClicked) {
            this.lastClickedElement = elementClicked;
            elementClicked.wasClicked = true;
        }
    }
Procedure after a element is clicked inside a subcircuit