Moved clicking and dragging circles to its own function