[added] ai retreating counter

Change-Id: I45322caa75fd49478cff645490a9fe52d49f6bde
Merge "[added] ai retreating counter" into unstable