public void loadBoardConfig() {
		try {
			FileReader reader = new FileReader(layoutFile);
			Scanner scan = new Scanner(reader);
			String str;
			String[] letters;
			numColumns = 0;
			numRows = 0;
			for(int i=0; scan.hasNextLine(); i++, numRows++) {
				str = scan.nextLine();
				letters = str.split(",");
				if (numColumns == 0) numColumns = letters.length;
				if (numColumns != letters.length)
					throw new BadConfigFormatException("Column format is incorrect.");
				if (!rooms.containsKey(letters[0].charAt(0)))
					throw new BadConfigFormatException("Room key does not exist.");
				for (int j=0; j<letters.length; j++) {
					str = letters[j];
					if (!str.equals(walkwayChar)) {
						RoomCell temp =new RoomCell (i,j ,str);
						temp.setFullName(rooms.get(str));
						cells.add(temp);
					}
					else cells.add(new WalkwayCell(i,j));
				}
			}
			scan.close();
		} catch (FileNotFoundException e) {
			System.out.println(e.getMessage());
		}

	}