detect wall distances in the center