After your robot has reached the wall, program it to turn to the next wall.