I can not find a way of only moving the clickedShape in my code. The code allows you to scale some drawn objects and add rectangles. You can also move the panel around. What would be useful now would be to just move the object that is clicked. Unfortunately the code below does not do this.
The aim is to move all the objects when I click on the panel and just move the clickedObject when I click on it.