The uniform cost search is up and running (works perfectly!).