cellular automaton simulation