Cuba, like many Spanish territories, wanted to break free from Spain. What country was Maine a territory of