BlackJack Logic in PHP