modified defend method in Hero class to include type of defense and healing