Updating score calculation