def get_iterator(board):
    """
    Iterator that scans the board's elements.
    Returns an iterator which contains the board's cells starting from
    row 0: (0,0), (0,1), (0,2),..., then row 1: (1,0), (1,1), (1,2)... etc.
    until all cells are scanned. For each cell the iterator returns its position
    and a boolean value (True or False) depending on the cell's status (dead or alive).

     Examples:
    >>> game = board(3)
    >>> set_alive(game, (2, 1), True)
    >>> for cell in get_iterator(game):
    ...     print(cell)
    ...
    ((0, 0), False)
    ((0, 1), False)
    ((0, 2), False)
    ((1, 0), False)
    ((1, 1), False)
    ((1, 2), False)
    ((2, 0), False)
    ((2, 1), True)
    ((2, 2), False)

    :param board: The game's board.
    :return: An iterator that scans the board's elements.
    """

    a = list(board.items())
    a.sort()
    iterator = iter(a)
    return iterator