public void AddToHighscore(string name, int time) { KeyValuePair<string, int> entry = new KeyValuePair<string, int> (name, time); if (!highscore.Contains (entry)) { highscore.Add (entry); } }