public int compareTo(Point p) {
        if (this.y < p.y) return -1;
        if (this.y > p.y) return  1;

        if (this.x < p.x) return -1;
        if (this.x > p.x) return  1;

        return 0;
    }