We now need a way to tell the game that we have beaten the boss. We will do this by having the game check the boss’ current health and if his health is below 1 then he needs to be destroyed.
For now we will just delete the clone, but in the next lesson we will add to what happens when we beat the boss.