fix poker code bugs