Wait for game thread