No more global window and renderer

so nasty mutable globals