FIXing the tracks still... now detection of corners seems to work, except for double-corners and corners still need lines between them, otherwise, they skip