implemented string matching game