Since I first saw this game on Twitter (X) I was hook by how interesting it looked! Specially thinking about how you implemented it on code! ...and I'm not disappointed!
At first I thought that I broke the game because I couldn't find a way to place and remove the connections, but once you get the idea, it is really good. The Grid adds a really cool layer to the design phase of your factory, I think that it allows for replaying the same levels with different configurations.
I really liked it! Congrats!