Not sure exactly, but I was spamming the dig button. I cleared an entire row, and it seemed like that row stopped getting new sand entirely. Then when I left that row to the top row, the game froze up with no inputs doing anything.
At times, when spamming dig and move, I could get the moves counter to go into the negatives. Not sure if that has something to do with it..
Hope this helps!