added limit to the number of players and fixed bug in double with insufficient funds