space_searcher simplified ("for" instead of "while")