final blackjack version - to be refactored