finished general search with water buckets example and deapth/breadth