updated code to not alert when you die.