function checkDistanceIsBad, check width of wall before add it