public void displayStats(int mode) throws IOException 
	{
		int totalGames = loadStats(mode);								// Get the statistics
		int guessCount = 0;						// Counter for # of guesses it took to correctly guess the MasterMind
		int averageTotal = 0;
		
		System.out.println("Total Games Played: " + totalGames);

		// Calculate the average guesses
		for (int i=0; i<MAX_SIZE;i++)
		{		
			// Display all of the stats if there was someone who correctly guesses
			if (guessArray[i] != 0) 
			{
				averageTotal += guessArray[i] * guessCount;
			}	
			guessCount++;
		}	
		if (totalGames >= 0)
			System.out.println("On Average It Took " + (averageTotal / ((double) totalGames)) + " Guesses to Successfully Answer The MasterMind.\n");

		// Reset Guess Count to go through the array again 
		guessCount = 0;
		if (totalGames != 0)
		{
			for (int i=0; i<MAX_SIZE;i++)
			{		
				// Display all of the stats if there was someone who correctly guesses
				if (guessArray[i] != 0) 
				{
					System.out.println(guessArray[i] + " users (" + (guessArray[i] / ((double) totalGames)) * 100 + "%) took " + guessCount + " guess(es) to successfully solve the MasterMind.");
				}	
				guessCount++;
			}	
		}
	}