score is updated in each phase