Added basic window and rendering loop