static public void stop(String name) {
        //destroy if component
        if (states.get(name) instanceof GameStateComponent) {
            ((GameStateComponent) states.get(name)).destroy();
        }
    }