Fix broken winner calculation