public void StopGame() { // Update highscore bestScoreThisInstance = bestScoreThisInstance > player.GetNumberOfRowsPassed() ? bestScoreThisInstance : player.GetNumberOfRowsPassed(); player.StopPlayer(); UiController.ShowEndScreen(); }