public void loadCards() throws BadConfigFormatException {
		try {
			// open the cards file, which has 6 person, 6 weapon, then 9 room cards in that order
			FileReader reader = new FileReader("cards.txt");
			Scanner in = new Scanner(reader);
			// stored to know card type
			int lineNumber = 0;
			Card card;
			// loop to read each line
			while(in.hasNextLine()) {
				String line = in.nextLine();
				lineNumber++;
				if (lineNumber < 7) {
					card = new Card(line,Card.CardType.PERSON);
				}
				else if (lineNumber < 13) {
					card = new Card(line,Card.CardType.WEAPON);
				}
				else {
					card = new Card(line,Card.CardType.ROOM);
				}
				cards.add(card);
			}
		} catch (FileNotFoundException e) {
			throw new BadConfigFormatException(e.getMessage());
		}
	}