public void calculateScore() {

		// readScores();

		if (score > people.get(people.size() - 1).getScore()) {

			String name = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";

			name = JOptionPane.showInputDialog(null,
					"You have gotten a new high score!\nYour Score: " + score
							+ "\nPlease enter your name below:", "High Score",
					JOptionPane.INFORMATION_MESSAGE);

			if (name == null) {
				name = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
			}

			while ((name.length() > 20) || (name.length() == 0)) {
				name = JOptionPane
						.showInputDialog(
								null,
								"You have gotten a new high score!\nYour Score: "
										+ score
										+ "\nPlease enter your name below:\n\nMust be less than 20 characters.",
								"High Score", JOptionPane.INFORMATION_MESSAGE);
				if (name == null) {
					name = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
				}
			}
			// write score to file
			Person pers = new Person(name, score);
			people.add(pers);

			readScores();
			drawScores();
			saveScores();
		}

	}