Added main game loop. Able to create window.