title: The program compiles but it gives an error when ran
body: <p>While trying to run this code I run into an error but not while compiling it. At the end of each directional method I call the next method in the order that is supposed to go in. What I am trying to do is make a program that will read a maze from a file and solve it. While solving it I want the program to place a P for the path it took and a V for the places that have already been visited. The program is only allowed to go forward left right then back for every direction. When you go a different direction you will have to still go by these rules except that the way you are facing is now the new forward.</p>
  
  <p>Maze Code:</p>
  
  <pre><code>    public static boolean goNorth(){
          boolean success;
          if(maze[startCol][startRow] == maze[finishCol][finishRow]){
          return true;
          }
              if(maze[startCol][startRow - 1] == CLEAR){
                  maze[startCol][startRow - 1] = PATH;
                  startRow = startRow - 1;
                  goNorth();
                  if(maze[startCol][startRow - 1] == PATH){
                      maze[startCol][startRow - 1] = VISITED;
                      startRow = startRow - 1;
                      goNorth();
                      if (maze[startCol][startRow - 1] == VISITED){
                          goSouth();
                      }   
                  }
              }
          goWest();
          return true;    
      }
  
  
      public static boolean goEast(){
          boolean success;
          if(maze[startCol][startRow] == maze[finishCol][finishRow]){
          return true;
          }
              if(maze[startCol + 1][startRow] == CLEAR){
                  maze[startCol + 1][startRow] = PATH;
                  startCol = startCol + 1;
                  goEast();
                  if(maze[startCol + 1][startRow] == PATH){
                      maze[startCol + 1][startRow] = VISITED;
                      startCol = startCol + 1;
                      goEast();
                      if(maze[startCol + 1][startRow] == VISITED){
                          goWest();
                      }
                  }
              }
          goNorth();
          return false;   
      }
  
  
      public static boolean goSouth(){
          boolean success;
          if(maze[startCol][startRow] == maze[finishCol][finishRow]){
              return true;
              }
  
              if(maze[startCol][startRow + 1] == CLEAR){
                  maze[startCol][startRow + 1] = PATH;
                  startRow = startRow + 1;
                  goSouth();
                  if(maze[startCol][startRow + 1] == PATH){
                      maze[startCol][startRow + 1] = VISITED;
                      startRow = startRow + 1;
                      goSouth();
                      if (maze[startCol][startRow + 1] == VISITED){
                          goNorth();
                      }   
                  }   
              }
          goEast();
          return false;   
          }
  
      public static boolean goWest(){
          boolean success;
          if(maze[startCol][startRow] == maze[finishCol][finishRow]){
          return true;
          }
              if(maze[startCol - 1][startRow] == CLEAR){
                  maze[startCol - 1][startRow] = PATH;
                  startCol = startCol - 1;
                  goWest();
                  if(maze[startCol - 1][startRow] == PATH){
                      maze[startCol - 1][startRow] = VISITED;
                      startCol = startCol - 1;
                      goWest();
                      if(maze[startCol - 1][startRow] == VISITED){
                          goEast();
                      }
                  }   
              }
          goSouth();
          return false;
      }
  }
  </code></pre>
  
  <p>Maze.txt: </p>
  
  <pre><code>20 7
  0 18
  6 12
  xxxxxxxxxxxxxxxxxx x
  x     x       xxxx x
  x xxxxx xxxxx   xx x
  x xxxxx xxxxxxx xx x
  x            xx xx x
  x xxxxxxxxxx xx    x 
  xxxxxxxxxxxx xxxxxxx
  </code></pre>
  
  <p>Error:</p>
  
  <p><a href="http://s22.postimg.org/etar0eq1t/Code.png" rel="nofollow">http://s22.postimg.org/etar0eq1t/Code.png</a></p>