States now store shared_ptr of RenderWindow