code: private int findMaxRowLength(String maze[]){
          int max = 0;
          for (String rowMaze : maze) {
              if (rowMaze.length() > max) max = rowMaze.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