java code for MarsRover