A cellular automaton based on toppling piles of sand