moved winner loop into main loop