add the function to avoid 1-turn death