added an anonymous function to blackjack game