fixed bug in takeDamage