added function to get the deck