Thanks for feedback!
I know about infinite loops.
In the screenshot I see a stalemate (no possible moves for the opponent).
It's impossible to AI hung the game.