Numerous bugfixes and rebalancing

- Bugfix: barracks will be continue to be built into late game (no
reliance on number of workers)
- Bugfix: castles will continue to be built where possible (with some
limitations)
- Bugfix: towers will no longer deter AI as much
- Bugfix: army no longer retreats if it's not close enough when another
unit is encountered