Refactored the Renderer class to be inheritable.
Added the ability to end the game by closing the window.