corrected bug with updating scores