Solution of different bugs in AddAdjacentPoints()