Cellular automata simulation