Once I understood what I did, this was very fun! There was an error at my last turn when I was supposed to win, maybe a bug there?
Great idea tho!
Yes, it is bug. I'm glad that behind the buggy logic and lack of normal visuals and animations, you were able to see the main idea of the game.