blackjack with some bugs