refactored ScoreBoard class