#78: wrote back logic for attack() in combat.c