refactored the declareWinners function, it's still longer/more complicated than i would like