fixed the scoring program