modified some code in score so that it could get scoreboard correctly