/**
  * Runs the robot driver's drive2Exit() method and moves to the end screen if the robot wins or
  * loses.
  */
 public void runRobotDriver() {
   try {
     userWins = driver.drive2Exit();
     gameOver = true;
   } catch (Exception e) {
     // Go to the end screen if there was a problem.
     Log.v("Maze", "Error in robot driver");
     userWins = false;
     gameOver = true;
   }
 }