added proper giveDamage() method