def update_board(num, board):
    """update individual board with -1

    Args:
        num (int): element to update
        board (np.array, optional): board to be updated. Defaults to board.

    Returns:
        np.array: updated board
    """
    board[board == num] = -1
    return board