public void SaveCurrentScore(string name) { highScoreData.AddRecord(new ScoreRecord(name, score)); SaveHighScores(); }