Update generateCourse.lua

found A little error in the distance testing in `getCorner` but everything is under control now ...