Encapsulating Collection 2

Changed the StateLibrary.getStates() to return an iterator
Merge branch 'master' of https://github.com/garrett92895/Nim