Added loading icon when user create the battle

After form submission, I added js code to show loading icon and it will dissapear when the result has been loaded