Refactored AI's checkStoppingConditions
Fixed typo in specs