public void saveScoreStats() {
		File file = new File("Scores.txt");
		boolean flag = false;
		FileWriter writer;
		ArrayList<String> scoreData = new ArrayList<String>();
		ListIterator<String> iterator;

		try {
			Scanner s = new Scanner(file);
			while(s.hasNextLine()) {
				scoreData.add(s.nextLine());
			}
			s.close();

			iterator = scoreData.listIterator();
			while(iterator.hasNext()) {
				if(iterator.next().equals(user.getUsername())) {
					iterator.next();
					iterator.set(String.valueOf(user.getScore().getHighScore())
									+ " " + String.valueOf(user.getScore().getBestTime())
									+ " " + user.getScore().getBestDifficulty()
									+ " " + user.getScore().getBestSize()
									+ " " + user.getScore().getCurrentScore()
									+ " " + String.valueOf(user.getScore().getCurrentTime())
									+ " " + user.getScore().getLastDifficulty()
									+ " " + user.getScore().getLastSize());
					flag = true;
					break;
				}
			}
			if(flag == false) {
				scoreData.add(user.getUsername());
				scoreData.add(String.valueOf(user.getScore().getHighScore())
								+ " " + String.valueOf(user.getScore().getBestTime())
								+ " " + user.getScore().getBestDifficulty()
								+ " " + user.getScore().getBestSize());
			}
			writer = new FileWriter("Scores.txt");
			iterator = scoreData.listIterator();
			while(iterator.hasNext()) {
				writer.write(iterator.next());
				writer.write("\n");
			}
			writer.close();
		}
		catch (FileNotFoundException e) {
			JOptionPane.showMessageDialog(null, "Could not find Scores. Contact system administrator.", "Error", JOptionPane.ERROR_MESSAGE);
		}
		catch (IOException e) {
			JOptionPane.showMessageDialog(null, "Could not update Scores. Contact system administrator.", "Error", JOptionPane.ERROR_MESSAGE);
		}
	}