newDeck function generates a new ID