What happened that allowed the United States to have Guam