//what to do when the game is lost void GameOver() { //end the game IsGameActive = false; //Reveal The Word WordToGuess.Reveal(); // invoke the event only if someone listens to it (not Null) GameOverEvent?.Invoke(this, false); }