Refactored some of the sidebar scoreboard code.