added callback to register player death