Loop through the array of scorevalues, and find the scorevalue closest to the slider value