def construct_grid(row, col):
    """
    :param row: defines the amount of rows
    :param col: defines the amount of columns
    :return: A grid that defines the lines to traverse
    """
    grid = []
    for i in range(0, row):
        tmp = []
        for j in range(0, col):
            tmp.append([i, j])
        grid.append(tmp)
    return grid