Kill a peon from incorrect tile
and next: I think that the problem It's realted to time, for exmple: the A.I. has some problably movements and select one of them according to a random algorithm, this algorithm works according to time and by that somtime can happen or not, to solve this problem I think you have to go at posible movement of the ia and check that the movement It's posible to avoid wrong movements selected by random. Nevertheless I don't know how It's programmed, so you have to investigate the problem. Good luck and cheer up. Have a nice day.