implemented the first pass of scoreboard