reading states from the file

Passed the 3 tests, need to adjust output