public void update(IObservable o) {
		if (myWorld.getGameOverStatus() && !newScoreRecorded) {
			int score = myWorld.getScore();

			for (int i = 0; i < highScores.length; i++) {
				if (score > highScores[i]) {
					int temp = highScores[i];
					highScores[i] = score;
					score = temp;
					i = 0;
				}
			}

			scoreLabel1.setText("1. " + highScores[0]);
			scoreLabel2.setText("2. " + highScores[1]);
			scoreLabel3.setText("3. " + highScores[2]);

			try {
				highScoreWriter = new BufferedWriter(new FileWriter(
						highScoreFile, false));

				for (int i = 0; i < highScores.length; i++) {
					highScoreWriter.write(highScores[i] + "\n");
				}
				highScoreWriter.close();
			} catch (IOException e) {
				e.printStackTrace();
			}

			newScoreRecorded = true;
		} else if (!myWorld.getGameOverStatus()) {
			newScoreRecorded = false;
		}
	}