Refactored BMInterface->search_game_history() to reduce length