// Method to create all stacks based on the cards in the list public static List <Stack> Stacks(List <Card> Cards) { Cards.AddRange(Card.BasicCards()); List <Stack> Stacks = new List <Stack>(); foreach (Card card in Cards) { Stacks.Add(new Stack { Cards = AddCards(card) }); } return(Stacks); }