Some fixes for AAI

It still seems to me that there is something wrong with the "learning" part of this AI...
But at least it now can build most of the units the game offers and do something.

Did not manage to fix the issue where it builds factories to close and hinders itself, though.