changed search function for relating games