Wrote the fight() function.