AI / Game over detection improvements