code: private int findMaxRowLength(char maze[][]){
          int max = 0;
          for (int row = 0; row < maze.length; row++) {
              if (maze[row].length > max) max = maze[row].length;
          }
          return max;
      }
docs: Find the maximum length of the rows of the maze.
  
  @param maze instance of maze
  @return max lenght of all rows