Edge detection for the walls