updated statemanager, and slightly changed State to createGUI()
added all changes from other persons. THIS IS BASICALLY A NEW START!
solved a bug in the statemanager in which the old state would not be removed.