THe AI is simple, look at how to acts when playing a faction(that the AI doesn't have trouble with), and then watch a faction where it does have trouble, watch the AI play Elves was how I first fixed the AI, although it's screwed up again, I'll have to fix it again.