The secret is that I'm marking when sand is in a stable state (can't move down, left, or right).