private static void ExecuteAttack(Tank tankA, Tank tankB) { while (tankB.Health > 0) { tankA.Shoot(tankB); } }