Added Torus grid and some new rules. Proper state numbers now
responsibility of grids, not rules themselves.