Update AI.h

corrected the design flaw of 0.3*maxim_val