Made Fight Function Work With New Code
Added var
Fixed

Had the wrong js file linked in html , forgot { in function