moved xwindow to window and added textures to model