Line 69-73 should be
if (list[i] > list[winInd])
{
winInd = i;
}
What you originally have is if the votes are less then zero then set the index to the number of votes. What I wrote says is if the votes at this index are more than the votes at the first index then set the index to this one.