Prevent betting more chips than you have

Also fix previous commit, which broke the case analysis in playerAction