private void printResult(StaticState[] resultState, int tracing) {//Highlight
        String[] sides = {"left", "down", "right", "up"};
//      Walls & Traps
        for (int i = 0; i < resultState[tracing].getStaticMaze().length; i++) {
            for (int j = 0; j < resultState[tracing].getStaticMaze().length; j++) {
//                    1111 last four digits: up, right, down, left
                for (int k = 1; k < 5; k++) {
                    int editValue = SetupOption.digit(resultState[tracing].getStaticMaze()[i][j], k);
                    SetupOption.editButton(i, j, sides[k - 1], editValue);
                }
                if (SetupOption.digit(resultState[tracing].getStaticMaze()[i][j], 5) == 1) {
                    int tam = deduceUnit(i, j);
                    this.unit[tam].setBackground(TRAP);
                }
            }
        }
        this.unit[deduceUnit(xExit, yExit)].setBackground(EXIT);

        //Key
        for (int i = 0; i < resultState[tracing].getKey().length; i++) {
            int xWall = resultState[tracing].getKey()[i].getxWall();
            int yWall = resultState[tracing].getKey()[i].getyWall();
            String affectedSide = sides[resultState[tracing].getKey()[i].getSide()-1];
            int currentState = SetupOption.digit(resultState[tracing].getStaticMaze()[xWall][yWall],
                    MainFrame.getSState().getKey()[i].getSide());
            SetupOption.editButton(xWall, yWall, affectedSide, 2*currentState);
            
            int tam = deduceUnit(resultState[tracing].getKey()[i].getX(),
                    resultState[tracing].getKey()[i].getY());
            this.unit[tam].setBackground(KEY);
        }

        //LivingThings
        //Mummy White
        for (int i = 0; i < resultState[tracing].getMummyWhite().length; i++) {
            int tam = deduceUnit(resultState[tracing].getMummyWhite()[i].getX(),
                    resultState[tracing].getMummyWhite()[i].getY());
            this.unit[tam].setBackground(MUMMY_WHITE);
        }
        //Mummy Red
        for (int i = 0; i < resultState[tracing].getMummyRed().length; i++) {
            int tam = deduceUnit(resultState[tracing].getMummyRed()[i].getX(),
                    resultState[tracing].getMummyRed()[i].getY());
            this.unit[tam].setBackground(MUMMY_RED);
        }
        //Scorpion
        for (int i = 0; i < resultState[tracing].getSk().length; i++) {
            int tam = deduceUnit(resultState[tracing].getSk()[i].getX(),
                    resultState[tracing].getSk()[i].getY());
            this.unit[tam].setBackground(SK);
        }
        //Scorpion Red
        for (int i = 0; i < resultState[tracing].getSkRed().length; i++) {
            int tam = deduceUnit(resultState[tracing].getSkRed()[i].getX(),
                    resultState[tracing].getSkRed()[i].getY());
            this.unit[tam].setBackground(SK_RED);
        }
        //Human
        this.unit[deduceUnit(resultState[tracing].getHuman().getX(),
                resultState[tracing].getHuman().getY())].setBackground(HUMAN_COLOR);
        this.setBorderColor(x, y);
    }