blackjack functionality working