"Score calculation" logic changed to calculate the latest attempt's score