A cellular automaton model of excitable media