updated the attack function, added some health mods