Very cool! 😄
We had a similar concept, with switching sides during the game.
Your game had more of a tactic focus, which I quite liked! I had time to think about my move, and the slight asymmetry between the two sides spiced things up a bit!
My only problem was that there were situations where the AI deterministically moved to a certain square, and me moving to any other square would have meant losing, so it ended up as kind of like a stalemate.
But still it was a fun little game!
Well done! 😊