The key here was not just making people do something in order to get the schwag, it was making them do something that made the person feel slightly awesome. That's an interaction they're going to remember. A good lesson for any marketing exercise.
The regular expression solution is easily my favorite. The way it shifts the board to find all the diagonals is a great gotcha, it took me a few minutes to understand what the heck was going on.