finish score calculation and updating