Implementation of Dominion card game in PHP