public GameStateManager(ContentManager c)
        {
            //add the three states to the states list
            MainMenuState mainmenu = new MainMenuState();

            states.Add(mainmenu);
            mainmenu.StateChangeEvent += OnStateChange;

            states.Add(new PlayingState());

            EditorState editor = new EditorState();

            editor.StateChangeDelegate += OnStateChange;
            states.Add(editor);

            PauseMenuState editorPauseMenu = new PauseMenuState(editor);

            states.Add(editorPauseMenu);
            editorPauseMenu.StateChangeEvent += OnStateChange;

            currentState = states[State];
        }
        //Util.Button gamebutton;
        //Util.Button editorbutton;

        public PauseMenuState(EditorState ps)
        {
            _previousState = ps;
        }