compute score only once for each candidate
fixed copy/paste bug
Merge pull request #773 from killdash9/master

compute score only once for each candidate