Refactored cellular automata to own file