var total_discs to replace function setTotalDiscs

and re-did the non-broken bits of the reverted "edits" commit