Add the update of the score in score table

Try to shorten the code using LinkedHashMap