Wrote the fight function.