Added end-protocol to cellular automata