Mars Rover Kata Solution in Java