changing canGoTo to search bi-directional