public static void AttemptToSavePlayer(int score, string name) { if (savedGame != null) { if (savedGame.IsPlayerNewHighscore(score)) { savedGame.AttemptAddPlayer(name, score); Save(); } } else { savedGame = new GameSave(); savedGame.AttemptAddPlayer(name, score); Save(); } }