avg path lenght integrated in main code.
go for 4 steps only, cna be quite slow!