You need to use an instance variable, not a global variable. Instance variables are set on and only affect an object. Global variables are non-specific, hence the name global. Each tank will have an instance variable called health with a starting value of 30. Then, only the tank whose variable reaches 0 will be destroyed.