Simulate Bak and Paczuski's sandpile model