Mars Rover problem Java