public void stopKI()
    {
        // Set the State to KI stop
        switch (state)
        {
        case caculateKI:
            setState(State.stopCaculateKI);
            break;
        case caculateHelpKI:
            setState(State.stopCaculateHelpKI);
            break;
        case checkPossible:
            setState(State.stopCheckPossible);
            break;
        default:
            break;
        }

        ki.stop();
        // waits until KI stopped
        while (ki.isKICalculating())
        {

        }

        // Set a new State
        switch (state)
        {
        case stopCaculateKI:
            setState(State.playingHuman);
            break;
        case stopCaculateHelpKI:
        case stopCheckPossible:
            setState(State.playingHumanHelp);
            break;
        default:
            break;
        }
    }