Mars Rover with State pattern produced by refactoring