Basic algorithm to find winners