spareCoins Refactor

refactored code in new file... haven't tested yet