implementing caching for search games