Reverted SDL main loop