changed checkCandidates to a method of CandidateList