Fixed ballista issue and added town generation algorithm