changes player die function to hurt function