refactoring blackjack class