Created method onPlayerDeath