updates taking damage logic