Added GetState Method to State.cpp