How did America get Texas?

They got very lucky lol