Implemented the scoreboard as a separate class