serialized grid for efficiency

The grid can now be saved to file when first ran. This grid can be used on repeated iterations of the process.