static int getClock(boolean opponent) {
        if (opponent) {
            if ("black".equals(Engine.color)) {
                return whiteClock;
            } else {
                return blackClock;
            }
        } else if ("black".equals(Engine.color)) {
            return blackClock;
        } else {
            return whiteClock;
        }
    }