detection of the player's death