Add ScoreTask method and fixbugs