Implemented the score calculation logic. Refactoring the rendering logic into a Renderer class.