internal void CheckIfDeckHasEnoughCards() { // everything is fine, enough cards on the game deck if (Deck.Count != 0) { return; } // take cards from the discard pile and shuffle them var cardsFromDiscardPile = DiscardPile.GetAndRemove(1, DiscardPile.Count - 1); Deck.AddRange(DeckCreator.Shuffle(cardsFromDiscardPile)); }