Updated stalemate handling in AITestUtility.