def path(current_state, seen_states):
    """Return the cards to move to the waste to reach the current state."""
    cards = []
    while current_state in seen_states:
        cards.append(current_state.waste_card)
        current_state = seen_states[current_state]
    return list(reversed(cards))