Updated generateSchedule to choose from the correct course array.