It's an improved AI system that decides which troops to buy based on what it can afford, what troops the player has, what troops itself has, how aggressive it is on that level, and etc..