public void Endgame(bool isWin = false) { Timer.Stop(); var myPoints = GetMyPoints(); // Stats StatsManager.AddGameTime((int)(Timer.ElapsedMilliseconds / 1000)); StatsManager.AddGamePoints(myPoints); if (isWin) { StatsManager.AddGameWon(); } // Achievement if (myPoints >= 10000) { AchievementManager.Achieve10000GamePoints(); if (_gameMode == IntegratedOpenGl.Mode.ModePartieRapide) { AchievementManager.Achieve10000FastGamePoints(); } } if (isWin && _isOnline) { AchievementManager.AchieveFirstOnlineGameWon(); } }