Update to determineAndDrawGround() method so that it works correctly
when the program creates the maps from XML files