public Point getPosn(ArrayList<Point> lst) {
        Point result = this.from;
        for (Point p : lst) {
            if (p.x == this.from.x && p.y == this.from.y) {
                result = this.to;
            }
        }
        return result;
    }