implemented cardDeck coding assignment