Lines and object working. Just need algorithm.