def list_square_to_input(list_signs,list_index_signs):
    """
    Take the list of squares fill in by a sign and create a 9x1
    array (input_layer for neural network) with values -1 for a cross,
    0 if empty square and 1 for a circle.
    """
    input_layer = [0 for k in range(9)]
    for i in range(len(list_signs)):
        if type(list_signs[i]) == list:
            input_layer[list_index_signs[i]] = -1
        else:
            input_layer[list_index_signs[i]] = 1
    return input_layer