title: How do I make the args function equal to 2? As it is just throwing File Not found exception
body: <pre><code>/**
    *   Compilation  : javac Traversal.java
    *   Execution    : java Traversal args0 ----- GraphicsMode
    *                : java Traversal args0 args1 ----- TextMode
    *
    *   Arguments    : args0 - boardfilename.txt
    *                     args1 - movesfilename.txt
    *
    *   Controls     : h - left movement
    *                  l - right movement
    *                  j - down movement
    *                  k - up movement
    **/   
  public static void main(String[] args) throws FileNotFoundException, InterruptedException {
          if (args.length == 1) {
              GameBoard board = Middleware.parseArgs(args[0]);
              Middleware.validateBoard(board);
              GraphicsMode.play(board);
          }else if (args.length == 2) {
              GameBoard board = Middleware.parseArgs(args[0]);
              Middleware.validateBoard(board);
              String moves = Middleware.readMoves(new Scanner(new File(args[1])));
              TextMode.play(board, moves);
          }
          exit();
      }
  
      /**
      * Sleep for 4000 microseconds to allow
      * the final event sound to finish
      * playing and then exits.
      */
      public static void exit() throws InterruptedException {
          Thread.sleep(4000);
          System.exit(0);
      }
  </code></pre>