sandpile graphing works