Blackjack refactoring