a pattern-matching game based on words