Prefix and Suffix Matching Game