changes to grouplines

the project still doesn't run beyond the edge detection but i included
the call to findvalidline. can you test it on your computer?