It looks like I've encountered an issue. The AI never made a move from this position and I had to close the game. It's basically checkmate anyhow, though.
Pretty solid idea regardless. I'll play around with it a little more.