public Point pixelChooser() {
//        if (used == true) {
//            used = false;
//            right = true;
//            a += 1;
//            return lastPoint;
//        } 

        if (right == true) {
            if (lastPoint.x + 3 < c) {
                newPoint = new Point(lastPoint.x + 3, lastPoint.y);
                lastPoint = newPoint;
                return newPoint;
            } else {
                down = true;
                right = false;
            }
        }

        if (down == true) {
            if (lastPoint.y + 3 < d) {
                newPoint = new Point(lastPoint.x, lastPoint.y + 3);
                lastPoint = newPoint;
                return newPoint;
            } else {
                left = true;
                down = false;
            }
        }

        if (left == true) {
            if (lastPoint.x - 3 > e) {
                newPoint = new Point(lastPoint.x - 3, lastPoint.y);
                lastPoint = newPoint;
                return newPoint;
            }else{
                up = true;
                left = false;
            }
        }
        
        if(up == true){
            if(lastPoint.y -3 > f){
                newPoint = new Point(lastPoint.x, lastPoint.y - 3);
                lastPoint = newPoint;
                return newPoint;
            }else{
                right = true;
                up = false;
                c -= 3;
                d-=3;
                e+=3;
                f+=3;
            }
        }
        b += 1;
        Point p = new Point(0,0);
        return p;
    }