Ok. I've worked on it today, I can know recall shapes on a grid of any size.
Also, another thing that would be awsome, the possibility to "clic" the shape on the grid. And being able to apply a rotation, and a symetry.
I'll post it when it's done so @weightless you can properly integrate it into the patch.
Rules involving more than two state is something I can't stop think about. Maybe I'll give it a try. If I have 2 months to kill.