public static void extendVertical(PathPart pp){
		Point first = pp.first;
		Point second = pp.last;
		if(!first.left.isObstacle && !second.left.isObstacle){
			i.previous();
			PathPart one = new PathPart(first, first.left);
			i.add(one);
			PathPart two = new PathPart(first.left, second.left);
			first.left.isObstacle = true;
			second.left.isObstacle = true;
			first.left.inPath = true;
			second.left.inPath = true;
			i.next();
			i.set(two);
			PathPart three = new PathPart(second.left, second);
			i.add(three);
			for(int j = 0; j < 4; ++j){
				i.previous();
			}
		}
		if(!first.right.isObstacle && !second.right.isObstacle){
			i.previous();
			PathPart one = new PathPart(first, first.right);
			i.add(one);
			PathPart two = new PathPart(first.right, second.right);
			first.right.isObstacle = true;
			second.right.isObstacle = true;
			first.right.inPath = true;
			second.right.inPath = true;
			i.next();
			i.set(two);
			PathPart three = new PathPart(second.right, second);
			i.add(three);
			for(int j = 0; j < 4; ++j){
				i.previous();
			}
		}
	}