refactored to eliminate need for coin variable. Renamed best_denoms to denoms