moved RenderWindow out of class