Interesting, I was wondering why the Idaho/Montana border is so squiggly looking relative to its neighboring straight line borders but apparently it's for a good reason. Unlike straight line borders that often arbitrarily cut across valleys, rivers, lakes, and other geographical features, the Idaho/Montana border actually follows a topographical ridge-line. The more you know I guess.
Most state lines in the Louisiana Purchase and beyond are pretty sensible for the most part.