Score based evaluation function