how the states got their shapes