added updating scoreboard