Protecting code when matching PlayingCards