Implementing some search algorithms in a maze...