def check_if_packs_can_be_played(packs, possible_plays):
    """
    Function used to check if player can play a pack of cards in turn.
    :param packs: list with packs of cards on hand
    :param possible_plays: list with all possible cards to play
    :return: list with possible to play packs
    """
    possible_packs = []
    [possible_packs.append(pack) for pack in packs for card in possible_plays if pack == card[1]]
    return list(set(possible_packs))