Added DirectX rendering loop