Refactored the engine, more in the renderer and less in the sprite classes