private static bool IsPassLegal(CardHand startingHand, IEnumerable <Card> cardsToPass) { return(cardsToPass.Count() == 3 && cardsToPass.Distinct().Count() == 3 && cardsToPass.All(x => startingHand.Contains(x))); }