refactoring nested iteration from full_deck and royal_deck