public IDeck Clone() { IDeck d = new Deck(); d.EmptyDeck(); foreach (ICard card in _cards) { ICard clonedCard = card.Clone(); d.AddCardToEnd(clonedCard); } return(d); }