Update generateCourse.lua

Think I have it this time ...