Cleaned up scoreboard display code and made it more flexible.