Touch target

HI all guys, I m making a game where I can draw multiple lines in every stage. I want that lines don’t overlay eachother. When I draw a line I d like to stop the touch event if I m over another line. I thought that I could check every time phase==moved if the mouse pointer is above an old line or not. How can I do it? Thanks in advance.