Also concerning the long delay, it's possible that it's because of the AI calculations. There is ways to optimize that, but depends on the algo you used, and the time it would take to be done. For example, some informations can be stored at the start of a game so the data access is faster
Viewing post in Midas & the 3 Bones jam comments
To be completely honest, the delay was added because the AI was too quick... It's fairly optimized and actually did its moves instantaneously, which is why I added artificial delay. Still, it could be that the AI needs more time to think in WebGL as well, so it surely is something I'll have to look into!