Deck of cards game Javascript