Added setGridState and finished methods for computing next generation