This function allows the robot to travel in a straight line down a hallway.