function embedPanEnd() {
    simulationArea.mouseDown = false;
    errorDetectedSet(false);
    updateSimulationSet(true);
    updatePositionSet(true);
    updateCanvasSet(true);
    gridUpdateSet(true);
    wireToBeCheckedSet(1);

    scheduleUpdate(1);
}
Function embedPanEnd
This function update simulator after mouse and touch end
For now variable name starts with mouse like mouseDown are used both
     touch and mouse will change in future