public async Task <PlayerGameStatus> JoinGame(string publicGameId, string username) { PublicGameId = publicGameId; Username = username; var game = _gameEngine.AddPlayerToGame(username, publicGameId); await Clients.Group(publicGameId).ReceiveNewPlayer(game.Players.First((p) => p.Username == username)); await Groups.AddToGroupAsync(Context.ConnectionId, publicGameId); GameId = game.GameId; return(game); }