Tic-tac-toe as a Flask/JS app