update deck function addCardToDeck