A Dynamic Theory of War and Peace