A professor hid a trap in a test and caught the majority of his students cheating with AI