Update generateCourse.lua

`lineCrossing` taken away, just modified `segmentsInstersection` a bit not to have two functions doing the same thing.
Every thing seems to work, start point set on field edge... has to be tested a bit more