Added candidate shuffling.
Fixed logic bug...