def possible_moves(state: list) -> list:
    """
    Returns list of all possible moves

    For the given board position 'state' returns
    list of all possible moves for the next turn

    Parameters
    ----------
    state : list
        The board position to be evaluated
    """

    moves = []
    for x, row in enumerate(state):
        for y, cell in enumerate(row):
            if cell == 0:
                moves.append([x,y])
    return moves