finishing findLadders2 and more optimization for ladderLength