I never got around to finishing this project, and then when I finally came back to finish it and learn minimax, I realized I hated not having type safety.
So, I restarted from scratch using typescript.
new repo: https://github.com/stumash/tic-tac-minimax-ts
run it in your browser: https://stumash.github.io/tic-tac-minimax-ts