small change in print(end of war write in log too now)