First working attempt at the Blackjack exercise.