first attempt at pathfinder