Moved direction calculation of Rover to private method.