add logic to the deck class