Changed dictionary data structure.
 * Grid is now a substructure that will be next to the rules.