added window and game loop