optimized findPath(), changed topRight name to bottomRight