Solution to Mars Rover challenge.