find valid placement & path length (wip)
merged with some code for the pathes