added allIn logic & corrected legalAction logic