implemented OnGameEnd