Fix tiled version of the simulation algorithm

It needs to take neighbourhood into account while computing new tiles' states
Why are u using polimorfic type; is there a reason for it?