Update calculation of score