Why does the student total points not calculate correctly