Included converting to Map. Error: Nonstatic member reference in findPath