public void loadPuzzle (String difficulty) {
		File file;
        /* Uses if statements to check the difficulty level passed */
		if (difficulty.equals("Easy")) {
			file = new File("easy9x9.txt");
		} else if (difficulty.equals("Medium")) {
			file = new File("medium9x9.txt");
		} else if (difficulty.equals("Hard")) {
			file = new File("hard9x9.txt");
		} else {
			file = new File("evil9x9.txt");
		}
		int i = 0, j = 0, value = 0;
		Scanner scanner;
        /* this uses a try to make sure that it handles exceptions */
		try {
			scanner = new Scanner(file);
			for (i = 0; i < 9; i++) {
				for (j = 0; j < 9; j++) {
					if (scanner.hasNextInt()) {
						value = scanner.nextInt();
						if (value != 0) {
							try {
								entries[i][j].setText(String.valueOf(value));
								entries[i][j].setForeground(Color.BLUE);
								entries[i][j].setEditable(false);
								
								pencilEntries[i][j].setText(String.valueOf(value));
								pencilEntries[i][j].setForeground(Color.BLUE);
								pencilEntries[i][j].setEditable(false);
							} catch (Exception e) {
								System.out.println("It broke at i: " + i + " j: " + j + " with " + value);	
							}
						} else {
							entries[i][j].setText("");
							pencilEntries[i][j].setText("");
						}
					}
				}
			}
			scanner.close();
		} catch (FileNotFoundException e) {
			JOptionPane.showMessageDialog(null, "Could not load puzzle. Contact system administrator.", "Error", JOptionPane.ERROR_MESSAGE);
		}
		
	}