fixed index out of bounds exception with validateMountain()