Reorganize code and mark darts in classe edgeSelection