How Does Earths Magnetic Field Work