public Point[][] getPointArray(int x, int y){
        Point[][] res = new Point[WORD_LENGTH][(int)Math.pow(8,WORD_LENGTH)];
        res[0][0] = points[x][y];
        for (int i = 0; i < WORD_LENGTH-1; i++){
            for (int j = 0; j < (int)Math.pow(8,i); j++){
                for (int l = 0; l < 8; l++){
                    res[i + 1][8 * j + l] = getPointsAround(res[i][j])[l] != null ? getPointsAround(res[i][j])[l] : new Point('*', -1, -1);
                }
            }
        }

        for (int i = 0;i < WORD_LENGTH; i++){
            for (int j = 0; j < (int)Math.pow(8,WORD_LENGTH); j++){
                if (res[i][j] == null){
                    res[i][j] = new Point('*',-1,-1);
                }
            }
        }

        return res;
    }