climb max distancec
refactoring, corner case climbing fixed