protected override void OnClosing(CancelEventArgs e) { scores.Add(playerName, highestSwarm); scores.Save(); }