Update blackjack

put the blackjack game in a function