My blackjack implementation in PHP