very clever idea and very well done. I like the puzzle mechanic itself. And the idea to randomize the rules for every playthrough is very smart. :)
… and i love your pixel art <3