public void saveState(int difficulty, int time, int hints,
			boolean[][] editableArray) throws IOException {
		File save = new File("save.txt");
		save.createNewFile();
		FileWriter writer = new FileWriter(save);
		Integer timeInteger = (Integer)time;
		writer.write(timeInteger.toString());
		writer.write("\n");
		Integer difficultyInteger = (Integer)difficulty;
		writer.write(difficultyInteger.toString());
		writer.write("\n");
		Integer hintsInteger = (Integer)hints;
		writer.write(hintsInteger.toString());
		writer.write("\n");
		for (int row = 8; row >= 0; row--) {
			for (int col = 0; col < 9; col++) {
				Integer currentNum = new Integer(boardArray[col][row]);
				String output = currentNum.toString();
				writer.write(output);
				writer.write(" ");
			}
			writer.write("\n");
		}
		for (int row = 8; row >= 0; row--) {
			for (int col = 0; col < 9; col++) {
				String output;
				boolean editable = editableArray[col][row];
				if (editable) {
					output = "1";
				} else {
					output = "0";
				}		
				writer.write(output);
				writer.write(" ");
			}
			writer.write("\n");
		}
		writer.close();
	}