changing nodes much improved, but still bugs with at least cost
best path more or less working