day 2 - imporved cellular automata with number of rule