public DrBrainInitialMaze(String filename) {
		String curLine;
		try {
		
			Scanner in = new Scanner(new File(filename));
			
			//first line is just an explanation:
			if(in.hasNextLine()) {
				curLine = in.nextLine();
				//System.out.println(curLine);
			}
			
			if(in.hasNextLine()) {
				curLine = in.nextLine();
				//System.out.println(curLine);
			}
			
			int numColumns = in.nextInt();
			//System.out.println(numColumns);
			int numRows = in.nextInt();
			//System.out.println(numRows);
		
			maze = new char[numRows][numColumns];
			
			if(in.hasNextLine()) {
				curLine = in.nextLine();
				System.out.println(curLine);
			}
			
			for(int i=0; i<numRows; i++) {
				if(in.hasNextLine()) {
					curLine = in.nextLine();
					System.out.println(curLine);
					
					if(curLine.length() >= numColumns) {
						//read the row:
						for(int j=0; j<numColumns; j++) {
								maze[i][j] = curLine.charAt(j);
						}
					} else {
						//skip this line because there's nothing on it.
						i--;
					}
				}
					
			}
			
			in.close();
		} catch (Exception e) {
			System.err.print("Error: could not read file");
			System.exit(0);
		}
	
	}