Changed ladder detection code to find more ladders