adding some oop principles
fixing the scoreboard