A simple pattern matching game