think Ive got start points and end points on diag detection sorted
think I have line detection working