Have created the fighting code