Decoupled the renderer from the game code.