def get_x_and_y_coords_for_a_square(square_array):
    """
    For a given array, return x and y coordinates
    :param square_array: array with coordinates of one square (from find_squares)
    :return: x1,y1,x2,y2,x3,y3,x4,y4
    """
    x1 = square_array[0][0]
    y1 = square_array[0][1]
    x2 = square_array[1][0]
    y2 = square_array[1][1]
    x3 = square_array[2][0]
    y3 = square_array[2][1]
    x4 = square_array[3][0]
    y4 = square_array[3][1]

    return x1, y1, x2, y2, x3, y3, x4, y4