Probleem met path length

number gets bigger instead of smaller