
getAll
to find all of the tiles on the map that are "living" or "dead."
however, Omay's map is 1028 tiles large.
So there's 2056 tiles between the arrays and their clones.
I'm going to rewrite it so that instead of using getAll
, it loops over the map using for loops.
I think this will use less memory because there won't be any arrays in JavaScript holding all of the tiles.