Simulation of the cosmic ray Moon shadow in the geomagnetic field