Introduced _win_to_world_coords function which converts window coordinates to world
Moved magnet radius to constructor variable
Refactored controller methods to new class