created function

created fight function