Improve wall detection + min/max distances