first draft of findPath