GameObject applyDamage function now prevents health from going under 0.