def find(list_of_board, board):
    """
    return index  if the board is in the list_of_board and -1 else
    """
    for i in range(len(list_of_board)):
        cost, b = list_of_board[i]
        if b.tiles == board.tiles:
            return i
    return -1