Modified the fight function code to apply to the objects.