Refactored the blackjack game without global vars and added bonus criteria.