- Rewrote detectAreaAcrossWall() for clarity