P.E.I. professor develops method to deter students from chea