Scan the trick-or-treaters. If they have red, give them a trick, if they're green, give them a treat.