A script to calculate in a fair way a ratng for each player in a game and a score aswell