Implemented dragging shapes to move them.