refine blackjack script