Added comments to pieSpinning() function