increase distance when there's a wall