a gyro compass inside controls the flight path of the sphere , the energy it produces magnifies the earths magnetic field around it ; by moving the magnetic field , it can control its flight in any direction .