private async Task LastCardsDeal(Game game, UsersPoints usersPoints, List <BotsPoints> botsPointsList) { List <Bot> playingBots; playingBots = GetPlayingBots(botsPointsList); while (playingBots.Count != 0) { await CardsDeal(game, usersPoints, playingBots, botsPointsList, false); playingBots = GetPlayingBots(botsPointsList); } var remainingCards = await _deckRepository.GetCardsByGameIdAsync(game.Id); await _deckRepository.RemoveRangeAsync(remainingCards); }