changed getClosestState to the original
Merge pull request #10 from dlazell/buildorder

changed getClosestState to the original