A bit of balancing and optimizations. Small AI improvements.