fixed internal deadlock in combat.ml
added ai.mli, reworked actions