simple war simulation for understanding oop