remove global score value and use singleton