-Added checkLine predicate