Yeah, feel free to punish the opponent for getting stuck. Take any advantage you can get because just between you and me, I think he cheats.
The AI is a behavior tree. Here's a link to a screenshot of what it looks like because it's technically spoilers https://imgur.com/a/nOCesWU. It's pretty bulky but it is very powerful and highly reusable. I don't know if you are familiar with the structure specifics but it shouldn't be hard to feel out in either case. There's a wiki article on it too if you were curious.