my first attempt at writing a blackjack code