implemented get_games api