public Node (int x, int y, Pathfind map, boolean walkable){
            this.x = x;
            this.y = y;
            this.map = map;
            this.walkable = walkable;

            if (x == map.endX && y == map.endY){
                return;}
        }