public void loadLegendConfigFile() throws FileNotFoundException, BadConfigFormatException {
		
		//Declare FileReader, Scanner, and local variables
		inputFileReader = new FileReader(legendFile);
		reader = new Scanner(inputFileReader);
		String entry;
		int numEntries = 0, currentRow = 0;
		
		//count the number of lines
		while (reader.hasNextLine()) {			
			numEntries++;
			reader.nextLine();
		}
		
		//Declare new FileReader with same file in order to reaccess the file
		FileReader inputFileReader2 = new FileReader(legendFile);
		reader = new Scanner(inputFileReader2);
		
		String[] entries = new String[numEntries];
	
		//While the file has another line, read in the line and split it via commas. If there are 2 tokens in the line,
		//the two tokens are put into the room HashMap with the first token as its key and the second token as its value
		while (reader.hasNextLine()) {
			currentRow = currentRow + 1;
			entry = reader.nextLine();
			entries = entry.split(", ");
			if (entries.length == 2) {
				rooms.put(entries[0].charAt(0), entries[1]);
			} else {
				throw new BadConfigFormatException("Row " + currentRow + " of legend file does not contain exactly two items.");
			}
		}
		
		reader.close();
		
	}