private Point[] getPointsAround(Point point){
        Point[] res = new Point[8];
        int n = 0;
        for (int i = -1; i < 2; i++){
            for (int j = -1; j < 2; j++){
                if (i != 0 || j != 0){
                    if (point.getLetter() != '*') {
                        res[n] = getPoint(point.getX() + i, point.getY() + j);
                    }
                    n++;
                }
            }
        }
        return res;
    }