Update generateCourse.lua

to be tested for the crossing problem. Could come from a denom value very near to zero.