Added Wall Detection