I fixed the problem.

I changed it form constantly dividing by 3 to dividing by the variable
numScores which stands for the amount of scores the user has entered