Fix winner() to account for ties