now walls does not intersect each other