Extracting logic for picking out a card to a separate class