Cellular automata simulator