set global variable like isPlayeroneAlive=0
set isPlayertwoAlive=0
now set at start set isPlayeroneAlive = 1
isPlayertwoAlive= 1
check if Playerone hit set isPlayeroneAlive = 0
player one destroyed
Playerotwo hit set isPlayertwoAlive = 0
player two destroyed