Added clean candidates and fixed some other things

TODO: recognize ties