filling in the scoreboard code