calculate score for each challenge