I just finished looking over your code, and it isn't working past clicking the start button.
I presume that's because it's being actively developed, so I'm going to wait a bit for you to finish before doing any more major changes.
I spent the time I set aside to work on this finding where the syntax error I see in the console is. Removing line 822 (fourth line of learnFight function) allows the user to get past the press start screen.
I'll check back later and hopefully things will be more stable once you're done.
Lots of luck.
RE: Having problems with the code