You're right, but I'm just trying to understand how the code is making the enemies die when I play. The logic makes no sense to me. Implementing winning would be easy. Subtract 1 from the amount of enemies until it reaches 0. When the enemies reach the bottom, you can die. If they shoot you, you also can die.