private boolean isTerminalNode(SquareAlex[][] b){
        for(int i=0; i<boardSize; i++){
            for(int j=0; j<boardSize; j++){
                if(b[i][j].COLOR==null) return false;
            }
        }
        return true;
    }