Search for a maze