added function to draw cards and to count how many cards are left in the deck