modified GetStateList() so then it can take in any txt file