create a update score function to share some code between mdr and nul

Created by  Thomas Campistron  on March 29, 2019
7X4JWWW7WOVGPMBIAAEJTWG6NZW5EI5ZIYB33J7YCBDOODFAZXYQC
Change contents