public ActionResult <GameResponse> GetGameState()
        {
            var resp = new GameResponse(
                _gameService.State,
                _gameService.CurrentPlayer);

            return(Ok(resp));
        }
        public IActionResult StopGame()
        {
            try
            {
                _gameService.StopGame();

                var resp = new GameResponse(
                    _gameService.State,
                    _gameService.CurrentPlayer);

                return(Ok(resp));
            }
            catch (KickermatException ex)
            {
                return(BadRequest(ex.Message));
            }
        }
        public IActionResult StartGame([FromQuery(Name = "playerId")] string?playerId)
        {
            if (playerId == null)
            {
                return(BadRequest("No player was selected"));
            }

            try
            {
                _gameService.StartGame(playerId);

                var resp = new GameResponse(
                    _gameService.State,
                    _gameService.CurrentPlayer);

                return(Ok(resp));
            }
            catch (KickermatException ex)
            {
                return(BadRequest(ex.Message));
            }
        }