Small fix: reduce path-finding redundancy.