changed getClosestState to return state instead of index
Merge pull request #6 from dlazell/addtobot

changed getClosestState to return state instead of index