solution to robot-simulator exercise