Cool art, but the code can definitely be optimized. The game gets very laggy when your army is outside of the screen. Just taking a wild guess but try not to run pathfinding algorithms every frame for each unit. You could just have your minions walk towards you.