cleaned up scoreboard refresh code