private void DealCards() { foreach (Player p in Players) { foreach (string key in new List <string>(p.CardDict.Keys)) { p.CardDict[key] = MainDeck.Take(1).First(); if (key.Contains("V")) { p.CardDict[key].Visibility = CardVisibilityState.Public; } MainDeck.RemoveAt(0); } } }