Check if there is only one line between the two positions and no word boxes are found, if so break the loop immediately.