public void ExecuteCommand(IGame game, string command) { switch (command.ToLower()) { case "help": game.UseHelp(); break; case "top": this.renderer.PrintScoreboard(this.scoreManager.TopPlayers); break; case "restart": game.RestartGame(); break; case "exit": game.ExitGame(); break; default: char guessedLetter = command[0]; game.GuessSingleLetter(guessedLetter); break; } }