def get_x_and_y_coords(array):
    """
    Import a value from an array and transform into a list of x and y coords
    :param array: 2D array of square coordinates
    :return: list of x and y coordinates to be used for plotting
    """
    x_vals = [array[0][0], array[1][0], array[2][0], array[3][0]]
    y_vals = [array[0][1], array[1][1], array[2][1], array[3][1]]
    coords = [x_vals, y_vals]
    return coords