fixed war logic and added update