public JsonResult Get(int gameId) { LudoGame game = _games.GetOrCreateGame(gameId); return(new JsonResult(new { gameId, currentPlayer = game.GetCurrentPlayer(), players = game.GetPlayers(), pieces = game.GetAllPiecesInGame() })); }