game : refactor and fix of the score chart code.