Further work on 2nd prototype

Changed State_Manager to be a Singleton
Implemented a changeState(int id) method