Wrote Line constructor and intersection checking methods