Use plagiarism detection tools such as AntiCutAndPaste and/or MOSS (Measure Of Software Similarity) to easily discover if any of your students are cheating off of one another.