Thanks for the useful code! Is there a way to use your code in order to decide whether there is a Condorcet winner?