Memory versus search in games