Better magnet controls

Better scaling, rotation and implemented magnet movement and button use
to drag objects.