Corrected winner calculation algo