Cellular automaton for the order-disorder transition