adding the chance_of_death functionality and the die() method