The back story to the Thai cave rescue