public void saveStats(int guessesUntilSuccess, int mode) throws IOException 
	{
		int totalGames = loadStats(mode);			// Retreive All Data
		totalGames++;								// Increase the total games played
		
		// Add the users total guesses into array
		guessArray[guessesUntilSuccess] = guessArray[guessesUntilSuccess] + 1;
		
		// Create file to write to
		BufferedWriter	writer;
		
		if (mode == 6)
			writer = new BufferedWriter(new FileWriter(standardFILE));
		else
			writer = new BufferedWriter(new FileWriter(challengeFILE));
		
		// Write the first line (Total number of guesses)
		writer.write(Integer.toString(totalGames));
		
		// Write each value in array to file, separated by lines
		for (int i = 1; i < MAX_SIZE; i++)
		{
			writer.newLine();
			writer.write(Integer.toString(guessArray[i]));
		}

		writer.close();							// Close BufferedWriter

	}