Added logic to end game once the deck is out of cards.