Updated blackjack function (Ch 7)