The mathematics of chip-firing. (2018)