Added the state manager, and with that - the state stack.
Also fixed a bug in GGame that made it unsafe to use variables in update() and render() that should have been initialized in create().