private void addSkills97()
    {
        Func <ORB_VALUE, OrbSpawnRate> noneOverFive = (ORB_VALUE orbVal) => ((int)orbVal >= 5 && (int)orbVal <= 9) ? OrbSpawnRate.NONE : Board.getDefaultOrbSpawnRates()[(int)orbVal];

        skillList.Add(EnemyOrbSkill.Create(() => true, noneOverFive, -1, skillTrans));

        Func <List <Vector2Int> > rand2Cols = () => {
            List <Vector2Int> cols = new List <Vector2Int>();
            int col1 = (GameController.Instance.getCurrTurn()) % Board.COLUMNS, col2 = (GameController.Instance.getCurrTurn() + 2) % Board.COLUMNS;
            for (int r = Board.ROWS - 1; r >= 0; r--)
            {
                cols.Add(new Vector2Int(col1, r));
                cols.Add(new Vector2Int(col2, r));
            }
            return(cols);
        };
        EnemyBoardSkill inc2Cols = EnemyBoardSkill.MarkOrderSkill(() => GameController.Instance.isTurnMod(2), rand2Cols, 0.1f, skillTrans);

        inc2Cols.addIncSkill(0.1f, (Orb o) => 1);
        skillList.Add(inc2Cols);
        EnemyBoardSkill setNinesToAnti = EnemyBoardSkill.MarkIfSkill(() => GameController.Instance.isTurnMod(2, 1), (Orb o) => o.getOrbValue() == ORB_VALUE.NINE, 0.1f, skillTrans);

        setNinesToAnti.addSetSkill(0.1f, (Orb o) => ORB_VALUE.POISON);
        skillList.Add(setNinesToAnti);

        Func <bool>     wtu1         = () => GameController.Instance.isTurnMod(2);
        EnemyBoardSkill markAllStops = EnemyBoardSkill.MarkIfSkill(wtu1, (Orb o) => o.getOrbValue() == ORB_VALUE.POISON, 0.1f, skillTrans);

        markAllStops.addMarkRemainSkill();
        skillList.Add(markAllStops);
        Func <int> getHeals = () => 33 * Board.Instance.getAllMarkedOrbsBy(getSkillID(markAllStops, markAllStops.getLastActivatedTurn()), null).Count;

        skillList.Add(EnemyAttack.Create(wtu1, true, () => gameObject, getHeals, skillTrans));
        Func <ORB_VALUE, OrbSpawnRate> maxOverFive = (ORB_VALUE orbVal) => ((int)orbVal >= 5 && (int)orbVal <= 9) ? OrbSpawnRate.MAX : Board.getDefaultOrbSpawnRates()[(int)orbVal];

        skillList.Add(EnemyOrbSkill.Create(wtu1, maxOverFive, 0, skillTrans));
        EnemyBoardSkill clearStops = EnemyBoardSkill.MarkIfSkill(wtu1, (Orb o) => o.getOrbValue() == ORB_VALUE.POISON, 0, skillTrans);

        clearStops.addRmvSkill(0.1f);
        skillList.Add(clearStops);

        Func <bool>     wtu2      = () => GameController.Instance.getCurrEnemies().Count == 2 ? GameController.Instance.isTurnMod(2, 1) : true;
        EnemyBoardSkill mark2Cols = EnemyBoardSkill.MarkOrderSkill(wtu2, rand2Cols, 0.1f, skillTrans);

        skillList.Add(mark2Cols);
        Func <int> getDmg = () => {
            int sum1 = 0, sum2 = 0;
            int col1 = (GameController.Instance.getCurrTurn()) % Board.COLUMNS, col2 = (GameController.Instance.getCurrTurn() + 2) % Board.COLUMNS;
            for (int r = Board.ROWS - 1; r >= 0; r--)
            {
                if (Board.Instance.getOrb(col1, r).isDigit())
                {
                    sum1 += Board.Instance.getOrb(col1, r).getIntValue();
                }
                if (Board.Instance.getOrb(col2, r).isDigit())
                {
                    sum2 += Board.Instance.getOrb(col2, r).getIntValue();
                }
            }
            return(-sum1 * sum2);
        };

        skillList.Add(EnemyAttack.Create(wtu2, false, () => Player.Instance.gameObject, getDmg, skillTrans));
    }
    private void addSkills81()
    {
        Func <bool>     wtu0       = () => GameController.Instance.getCurrEnemies().Count == 2 ? GameController.Instance.isTurnMod(4, 1) : GameController.Instance.isTurnMod(2);
        EnemyBoardSkill onesToStop = EnemyBoardSkill.MarkIfSkill(wtu0, (Orb o) => o.getOrbValue() == ORB_VALUE.ONE, 0.1f, skillTrans);

        onesToStop.addSetSkill(0.1f, (Orb o) => ORB_VALUE.STOP);
        skillList.Add(onesToStop);

        Func <bool>     wtu1            = () => GameController.Instance.getCurrEnemies().Count == 2 ? GameController.Instance.isTurnMod(4, 3) : GameController.Instance.isTurnMod(2, 1);
        EnemyBoardSkill sevensToNullify = EnemyBoardSkill.MarkIfSkill(wtu1, (Orb o) => o.getOrbValue() == ORB_VALUE.SEVEN, 0.1f, skillTrans);

        sevensToNullify.addSetSkill(0.1f, (Orb o) => ORB_VALUE.NULLIFY);
        skillList.Add(sevensToNullify);

        Func <bool>      wtu2    = () => GameController.Instance.getCurrEnemies().Count == 2 ? GameController.Instance.isTurnMod(2, 1) : true;
        Func <Orb, bool> is369   = (Orb o) => o.isUnmarked() && (o.getOrbValue() == ORB_VALUE.THREE || o.getOrbValue() == ORB_VALUE.SIX || o.getOrbValue() == ORB_VALUE.NINE);
        EnemyBoardSkill  mark369 = EnemyBoardSkill.MarkIfSkill(wtu2, is369, 0.1f, skillTrans);

        mark369.addMarkRemainSkill();
        skillList.Add(mark369);
        Func <int> getDmg = () => {
            List <Orb> markedOrbs = Board.Instance.getAllMarkedOrbsBy(getSkillID(mark369, mark369.getLastActivatedTurn()), null);
            int        sum        = 0;
            foreach (Orb o in markedOrbs)
            {
                sum += o.getIntValue();
            }
            return(-sum * markedOrbs.Count);
        };
        Func <bool> wtu2a = () => GameController.Instance.getCurrEnemies().Count == 2 ? GameController.Instance.isTurnMod(2) : true;

        skillList.Add(EnemyAttack.Create(wtu2a, false, () => Player.Instance.gameObject, getDmg, skillTrans));
        Func <Orb, bool> markedBy369 = (Orb o) => o.getIsMarkedBy(getSkillID(mark369, mark369.getLastActivatedTurn()));
        EnemyBoardSkill  clear369    = EnemyBoardSkill.MarkIfSkill(wtu2a, markedBy369, 0, skillTrans);

        clear369.addRmvSkill(0.1f);
        skillList.Add(clear369);

        Func <bool>      wtu3      = () => GameController.Instance.getCurrEnemies().Count == 2 ? GameController.Instance.isTurnMod(2, 1) : false;
        EnemyBoardSkill  markPivot = null;
        Func <Orb, bool> getPivot  = (Orb o) => {
            for (int c = 0; c < Board.COLUMNS; c++)
            {
                for (int r = 0; r < Board.ROWS; r++)
                {
                    if (Board.Instance.getOrb(c, r).getIsMarkedBy(getSkillID(markPivot, markPivot.getActivatedTurn())))
                    {
                        return(false);
                    }
                }
            }
            System.Random rand          = new System.Random(getRandomSeedByTurn(markPivot));
            List <Orb>    potentialOrbs = new List <Orb>();
            for (int c = 0; c < Board.COLUMNS; c++)
            {
                for (int r = 0; r < Board.ROWS; r++)
                {
                    if (Board.Instance.getOrb(c, r).isUnmarked())
                    {
                        potentialOrbs.Add(Board.Instance.getOrb(c, r));
                    }
                }
            }
            int pivotIndex = rand.Next(potentialOrbs.Count);
            if (potentialOrbs.Count > 0 && o == potentialOrbs[pivotIndex])
            {
                return(true);
            }
            return(false);
        };

        markPivot = EnemyBoardSkill.MarkIfSkill(wtu3, getPivot, 0.1f, skillTrans, 0);
        markPivot.addMarkRemainSkill();
        skillList.Add(markPivot);
        Func <bool> wtu3a = () => GameController.Instance.getCurrEnemies().Count == 2 ? GameController.Instance.isTurnMod(2) : false;
        Func <List <Vector2Int> > plusPivot = () => {
            List <Vector2Int> plus  = new List <Vector2Int>();
            Vector2Int        pivot = new Vector2Int(-1, -1);
            for (int c = 0; c < Board.COLUMNS; c++)
            {
                for (int r = 0; r < Board.ROWS; r++)
                {
                    if (Board.Instance.getOrb(c, r).getIsMarkedBy(getSkillID(markPivot, markPivot.getLastActivatedTurn())))
                    {
                        pivot = new Vector2Int(c, r);
                    }
                }
            }
            if (pivot.x != -1 && pivot.y != -1)
            {
                bool reachedEnd = false;
                for (int offset = 0; !reachedEnd; offset++)
                {
                    reachedEnd = true;
                    if (pivot.x + offset < Board.COLUMNS)
                    {
                        plus.Add(new Vector2Int(pivot.x + offset, pivot.y));
                        reachedEnd = false;
                    }
                    if (pivot.y + offset < Board.ROWS)
                    {
                        plus.Add(new Vector2Int(pivot.x, pivot.y + offset));
                        reachedEnd = false;
                    }
                    if (pivot.x - offset >= 0)
                    {
                        plus.Add(new Vector2Int(pivot.x - offset, pivot.y));
                        reachedEnd = false;
                    }
                    if (pivot.y - offset >= 0)
                    {
                        plus.Add(new Vector2Int(pivot.x, pivot.y - offset));
                        reachedEnd = false;
                    }
                }
            }
            plus = plus.Distinct().ToList();
            return(plus);
        };
        EnemyBoardSkill decPlusPivot = EnemyBoardSkill.MarkOrderSkill(wtu3a, plusPivot, 0.1f, skillTrans);

        decPlusPivot.addRmvSkill(0.1f);
        skillList.Add(decPlusPivot);

        Func <bool>     wtu4    = () => GameController.Instance.getCurrEnemies().Count != 2;
        EnemyBoardSkill decPlus = EnemyBoardSkill.MarkOrderSkill(wtu4, null, 0.1f, skillTrans);

        decPlus.addRmvSkill(0.1f);
        skillList.Add(decPlus);
    }
    private void addSkills89()
    {
        Func <ORB_VALUE, OrbSpawnRate> decNullify = (ORB_VALUE orbVal) => orbVal == ORB_VALUE.NULLIFY ? OrbSpawnRate.DECREASED : Board.getDefaultOrbSpawnRates()[(int)orbVal];

        skillList.Add(EnemyOrbSkill.Create(() => true, decNullify, -1, skillTrans));

        EnemyBoardSkill setNinesToStop = EnemyBoardSkill.MarkIfSkill(() => GameController.Instance.isTurnMod(2), (Orb o) => o.getOrbValue() == ORB_VALUE.NINE, 0.1f, skillTrans);

        setNinesToStop.addSetSkill(0.1f, (Orb o) => ORB_VALUE.STOP);
        skillList.Add(setNinesToStop);
        Func <List <Vector2Int> > rand2Rows = () => {
            List <Vector2Int> rows = new List <Vector2Int>();
            int row1 = (GameController.Instance.getCurrTurn()) % Board.ROWS, row2 = (GameController.Instance.getCurrTurn() + 2) % Board.ROWS;
            for (int c = 0; c < Board.COLUMNS; c++)
            {
                rows.Add(new Vector2Int(c, row1));
                rows.Add(new Vector2Int(c, row2));
            }
            return(rows);
        };
        EnemyBoardSkill inc2Rows = EnemyBoardSkill.MarkOrderSkill(() => GameController.Instance.isTurnMod(2, 1), rand2Rows, 0.1f, skillTrans);

        inc2Rows.addIncSkill(0.1f, (Orb o) => 1);
        skillList.Add(inc2Rows);

        Func <bool>     wtu1         = () => GameController.Instance.isTurnMod(2, 1);
        EnemyBoardSkill markAllStops = EnemyBoardSkill.MarkIfSkill(wtu1, (Orb o) => o.getOrbValue() == ORB_VALUE.STOP, 0.1f, skillTrans);

        markAllStops.addMarkRemainSkill();
        skillList.Add(markAllStops);
        Func <int> getHeals = () => 33 * Board.Instance.getAllMarkedOrbsBy(getSkillID(markAllStops, markAllStops.getLastActivatedTurn()), null).Count;

        skillList.Add(EnemyAttack.Create(wtu1, true, () => gameObject, getHeals, skillTrans));
        Func <ORB_VALUE, OrbSpawnRate> maxOverFive = (ORB_VALUE orbVal) => ((int)orbVal >= 5 && (int)orbVal <= 9) ? OrbSpawnRate.MAX : Board.getDefaultOrbSpawnRates()[(int)orbVal];

        skillList.Add(EnemyOrbSkill.Create(wtu1, maxOverFive, 0, skillTrans));
        EnemyBoardSkill clearStops = EnemyBoardSkill.MarkIfSkill(wtu1, (Orb o) => o.getOrbValue() == ORB_VALUE.STOP, 0, skillTrans);

        clearStops.addRmvSkill(0.1f);
        skillList.Add(clearStops);

        Func <bool>     wtu2      = () => GameController.Instance.getCurrEnemies().Count == 2 ? GameController.Instance.isTurnMod(2) : true;
        EnemyBoardSkill mark2Rows = EnemyBoardSkill.MarkOrderSkill(wtu2, rand2Rows, 0.1f, skillTrans);

        skillList.Add(mark2Rows);
        Func <int> getDmg = () => {
            int sum1 = 0, sum2 = 0;
            int row1 = (GameController.Instance.getCurrTurn()) % Board.ROWS, row2 = (GameController.Instance.getCurrTurn() + 2) % Board.ROWS;
            for (int c = 0; c < Board.COLUMNS; c++)
            {
                if (Board.Instance.getOrb(c, row1).isDigit())
                {
                    sum1 += Board.Instance.getOrb(c, row1).getIntValue();
                }
                if (Board.Instance.getOrb(c, row2).isDigit())
                {
                    sum2 += Board.Instance.getOrb(c, row2).getIntValue();
                }
            }
            return(-sum1 * sum2);
        };

        skillList.Add(EnemyAttack.Create(wtu2, false, () => Player.Instance.gameObject, getDmg, skillTrans));
    }
    private void addSkills64()
    {
        Func <bool>     wtu0        = () => GameController.Instance.getCurrEnemies().Count == 2 ? GameController.Instance.isTurnMod(4) : GameController.Instance.isTurnMod(2);
        EnemyBoardSkill healsToAnti = EnemyBoardSkill.MarkIfSkill(wtu0, (Orb o) => o.getOrbValue() == ORB_VALUE.ZERO, 0.1f, skillTrans);

        healsToAnti.addSetSkill(0.1f, (Orb o) => ORB_VALUE.POISON);
        skillList.Add(healsToAnti);

        Func <bool>     wtu1         = () => GameController.Instance.getCurrEnemies().Count == 2 ? GameController.Instance.isTurnMod(4, 2) : GameController.Instance.isTurnMod(2, 1);
        EnemyBoardSkill fivesToEmpty = EnemyBoardSkill.MarkIfSkill(wtu1, (Orb o) => o.getOrbValue() == ORB_VALUE.FIVE, 0.1f, skillTrans);

        fivesToEmpty.addSetSkill(0.1f, (Orb o) => ORB_VALUE.EMPTY);
        skillList.Add(fivesToEmpty);

        Func <bool>      wtu2    = () => GameController.Instance.getCurrEnemies().Count == 2 ? GameController.Instance.isTurnMod(2) : true;
        Func <Orb, bool> is248   = (Orb o) => o.isUnmarked() && (o.getOrbValue() == ORB_VALUE.TWO || o.getOrbValue() == ORB_VALUE.FOUR || o.getOrbValue() == ORB_VALUE.EIGHT);
        EnemyBoardSkill  mark248 = EnemyBoardSkill.MarkIfSkill(wtu2, is248, 0.1f, skillTrans);

        mark248.addMarkRemainSkill();
        skillList.Add(mark248);
        Func <int> getDmg = () => {
            List <Orb> markedOrbs = Board.Instance.getAllMarkedOrbsBy(getSkillID(mark248, mark248.getLastActivatedTurn()), null);
            int        sum        = 0;
            foreach (Orb o in markedOrbs)
            {
                sum += o.getIntValue();
            }
            return(-sum * markedOrbs.Count);
        };
        Func <bool> wtu2a = () => GameController.Instance.getCurrEnemies().Count == 2 ? GameController.Instance.isTurnMod(2, 1) : true;

        skillList.Add(EnemyAttack.Create(wtu2a, false, () => Player.Instance.gameObject, getDmg, skillTrans));
        Func <Orb, bool> markedBy248 = (Orb o) => o.getIsMarkedBy(getSkillID(mark248, mark248.getLastActivatedTurn()));
        EnemyBoardSkill  clear248    = EnemyBoardSkill.MarkIfSkill(wtu2a, markedBy248, 0, skillTrans);

        clear248.addRmvSkill(0.1f);
        skillList.Add(clear248);

        Func <bool>      wtu3      = () => GameController.Instance.getCurrEnemies().Count == 2 ? GameController.Instance.isTurnMod(2) : false;
        EnemyBoardSkill  markPivot = null;
        Func <Orb, bool> getPivot  = (Orb o) => {
            for (int c = 0; c < Board.COLUMNS; c++)
            {
                for (int r = 0; r < Board.ROWS; r++)
                {
                    if (Board.Instance.getOrb(c, r).getIsMarkedBy(getSkillID(markPivot, markPivot.getActivatedTurn())))
                    {
                        return(false);
                    }
                }
            }
            System.Random rand          = new System.Random(getRandomSeedByTurn(markPivot));
            List <Orb>    potentialOrbs = new List <Orb>();
            for (int c = 0; c < Board.COLUMNS; c++)
            {
                for (int r = 0; r < Board.ROWS; r++)
                {
                    if (Board.Instance.getOrb(c, r).isUnmarked())
                    {
                        potentialOrbs.Add(Board.Instance.getOrb(c, r));
                    }
                }
            }
            int pivotIndex = rand.Next(potentialOrbs.Count);
            if (potentialOrbs.Count > 0 && o == potentialOrbs[pivotIndex])
            {
                return(true);
            }
            return(false);
        };

        markPivot = EnemyBoardSkill.MarkIfSkill(wtu3, getPivot, 0.1f, skillTrans, 0);
        markPivot.addMarkRemainSkill();
        skillList.Add(markPivot);
        Func <bool> wtu3a = () => GameController.Instance.getCurrEnemies().Count == 2 ? GameController.Instance.isTurnMod(2, 1) : false;
        Func <List <Vector2Int> > plusPivot = () => {
            List <Vector2Int> plus  = new List <Vector2Int>();
            Vector2Int        pivot = new Vector2Int(-1, -1);
            for (int c = 0; c < Board.COLUMNS; c++)
            {
                for (int r = 0; r < Board.ROWS; r++)
                {
                    if (Board.Instance.getOrb(c, r).getIsMarkedBy(getSkillID(markPivot, markPivot.getLastActivatedTurn())))
                    {
                        pivot = new Vector2Int(c, r);
                    }
                }
            }
            if (pivot.x != -1 && pivot.y != -1)
            {
                bool reachedEnd = false;
                for (int offset = 0; !reachedEnd; offset++)
                {
                    reachedEnd = true;
                    if (pivot.x + offset < Board.COLUMNS)
                    {
                        plus.Add(new Vector2Int(pivot.x + offset, pivot.y));
                        reachedEnd = false;
                    }
                    if (pivot.y + offset < Board.ROWS)
                    {
                        plus.Add(new Vector2Int(pivot.x, pivot.y + offset));
                        reachedEnd = false;
                    }
                    if (pivot.x - offset >= 0)
                    {
                        plus.Add(new Vector2Int(pivot.x - offset, pivot.y));
                        reachedEnd = false;
                    }
                    if (pivot.y - offset >= 0)
                    {
                        plus.Add(new Vector2Int(pivot.x, pivot.y - offset));
                        reachedEnd = false;
                    }
                }
            }
            plus = plus.Distinct().ToList();
            return(plus);
        };
        EnemyBoardSkill clearPlusPivot = EnemyBoardSkill.MarkOrderSkill(wtu3a, plusPivot, 0.1f, skillTrans);

        clearPlusPivot.addRmvSkill(0.1f);
        skillList.Add(clearPlusPivot);

        Func <bool>     wtu4      = () => GameController.Instance.getCurrEnemies().Count != 2;
        EnemyBoardSkill clearPlus = EnemyBoardSkill.MarkOrderSkill(wtu4, null, 0.1f, skillTrans);

        clearPlus.addRmvSkill(0.1f);
        skillList.Add(clearPlus);
    }