Added 'isClosing'  to window
Added some more functions to 'window'
Added a basic game loop