private void PlayGame() { while (!_gameEngine.IsGameFinished) { try { var command = _gameUi.GetPlayerCommand(); _gameEngine.ExecutePlayerCommand(command); } catch (GameException e) { Console.WriteLine(e.Message); continue; } _gameUi.DisplayGameBoard(_gameEngine.GameBoard); } _gameUi.PrintResult(_gameEngine.IsPlayerWin); }