fixed a stack overflow error when the ai determines that it will always loose (even in the very short run)