refactored the collect method of WinningsCollector to make it more modularized.