pathing on arbitrary maps