scala implementation of a blackjack game