private void parseTimeControls(String key, int value) {

        // Java seriously needs to support Strings in switch statements (Java 1.7!)

        if (key.equals("movetime")) {

            timeControls |= TC_MOVETIME;
            moveTime = value;

        } else if (key.equals("depth")) {

            timeControls |= TC_FIXEDDEPTH;
            fixedDepth = value;

        } else if (key.equals("nodes")) {

            timeControls |= TC_NODES;
            fixedNoOfNodes = value;

        } else if (key.equals("mate")) {

            timeControls |= TC_INFINITE;
            System.out.println("Mate: NOT Supported!");

        } else if (key.equals("movestogo")) {

            timeControls |= TC_MOVESTOGO;
            movesToGo = value;

        } else if (key.equals("wtime")) {

            timeControls |= TC_TIMELEFT;
            timeLeft[WHITE] = value;

        } else if (key.equals("winc")) {

            timeControls |= TC_INC;
            inc[WHITE] = value;

        } else if (key.equals("btime")) {

            timeControls |= TC_TIMELEFT;
            timeLeft[BLACK] = value;

        } else if (key.equals("binc")) {

            timeControls |= TC_INC;
            inc[BLACK] = value;

        } else {
            assert false : "No time control goes by the name " + key;
        }

    }